package com.power.bank.config;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@ConfigurationProperties(prefix = "aliyun")
@PropertySource(value = {"classpath:iotapplication.yml"})
@Component
public class AliyunConfig {

    @Value(value = "${ACCESS_KEY_ID}")
    private  String accessKeyId;
    @Value("${ACCESS_KEY_SECRET}")
    private  String accessKeySecret;
    @Value("${Endpoint}")
    private  String endpoint;

    @Value("${IotInstanceId}")
    private   String IotInstanceId;


    public String getAccessKeyId() {
        return accessKeyId;
    }

    public void setAccessKeyId(String accessKeyId) {
        this.accessKeyId = accessKeyId;
    }

    public String getAccessKeySecret() {
        return accessKeySecret;
    }

    public void setAccessKeySecret(String accessKeySecret) {
        this.accessKeySecret = accessKeySecret;
    }

    public String getEndpoint() {
        return endpoint;
    }

    public void setEndpoint(String endpoint) {
        this.endpoint = endpoint;
    }

    public String getIotInstanceId() {
        return IotInstanceId;
    }

    public void setIotInstanceId(String iotInstanceId) {
        IotInstanceId = iotInstanceId;
    }
}
